<?php

namespace app\index\validate;

use think\Validate;

class FileValidate extends Validate
{
    protected $rule =   [
        'title'  => 'require',
        'describe'   => 'require',
        'filename'=>'require',
        'path'=>'require'
    ];

    protected $message  =   [
        'title.require' => '主题不能为空',
        'describe.require'     => '描述不能为空',
        'filename.require' => '文件名不能为空',
        'path.require'     => '文件地址不能为空',
    ];
}
